﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace SurfaceAsteroids
{
    class Ship :SpaceObject
    {
        private Vector2 lastPosition;
        private long nextShotSpawn = 0;
        private int currentContact;

        public Vector2 LastPosition
        {
            get { return lastPosition; }
            set { lastPosition = value; }
        }

        public long NextShotSpawn
        {
            get { return nextShotSpawn; }
            set { nextShotSpawn = value; }
        }

        public int CurrentContact
        {
            get { return currentContact; }
            set { currentContact = value; }
        }
        
        override
        public string ObjectType()
        {
            return "ship";
        }

        public Ship(Vector2 loc, float rot, Microsoft.Xna.Framework.Graphics.Color col, Texture2D tex)
            : base(loc, rot, 0f, col, 1f, tex)
        {
            nextShotSpawn = 0;
        }
 
    }
}
